package com.x.crm.model;

import com.x.crm.DocDesc;
import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2018/2/2.
 */

@MappingTable(tableName = "CRM_CUSTOMER_SHOP")
public class CustomerShop  extends BaseObject{
	@DocDesc("ID")
	@MappingColumn(columnName = "CUSTOMER_SHOP_ID",columnPk = true, columnLength = 32)
	private String customerShopId;
	@DocDesc("客户ID")
	@MappingColumn(columnName = "CUSTOMER_ID")
	private String customerId;
	@DocDesc("客户名称")
	@MappingColumn(columnName = "CUSTOMER_NAME")
	private String customerName;
	@DocDesc("客户性别")
	@MappingColumn(columnName = "SEX")
	private Integer sex;
	@DocDesc("身份证")
	@MappingColumn(columnName = "CUSTOMER_CARD")
	private String customerCard;
	@DocDesc("生日")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "BIRTHDAY")
	private Date birthday;
	@DocDesc("客户ID")
	@MappingColumn(columnName = "AGE")
	private Integer age;
	@DocDesc("客户通讯地址")
	@MappingColumn(columnName = "CUSTOMER_ADDRESS")
	private String customerAddress;
	@DocDesc("城市ID")
	@MappingColumn(columnName = "CITY_ID")
	private String cityId;
	@DocDesc("省ID")
	@MappingColumn(columnName = "PROVINCE_ID")
	private String provinceId;
	@DocDesc("城市名称")
	@MappingColumn(columnName = "CITY_NAME")
	private String cityName;
	@DocDesc("省名称")
	@MappingColumn(columnName = "PROVINCE_NAME")
	private String provinceName;
	@DocDesc("店铺ID")
	@MappingColumn(columnName = "SHOP_ID")
	private String shopId;
	@DocDesc("店铺ID")
	@MappingColumn(columnName = "MARKET_ID")
	private String  marketId;
	@DocDesc("店铺ID")
	@MappingColumn(columnName = "LEVEL_ID")
	private String   levelId;
	@DocDesc("店铺ID")
	@MappingColumn(columnName = "CHANNEL_ID")
	private String   channelId;
	@DocDesc("跟进状态")
	@MappingColumn(columnName = "FOLLOW_STATE")
	private Integer  followState; // 0 暂时无效  1 待分配  2 已分配
	@DocDesc("跟进人")
	@MappingColumn(columnName = "FOLLOWER_ID")
	private String  followerId;
	@DocDesc("渠道名称")
	@MappingColumn(columnName = "CHANNEL_NAME")
	private String  channelName;
	@DocDesc("等级名称")
	@MappingColumn(columnName = "LEVEL_TXT")
	private String   levelTxt;
	@DocDesc("预算区间最小")
	@MappingColumn(columnName = "CUSTOMER_BUDGET_MIN")
	private BigDecimal customerBudgetMin;
	@DocDesc("预算区间最大")
	@MappingColumn(columnName = "CUSTOMER_BUDGET_MAX")
	private BigDecimal customerBudgetMax;
	@DocDesc("跟进人")
	@MappingColumn(columnName = "LAST_FOLLOWER")
	private String lastFollower;
	@DocDesc("末次跟进结果")
	@MappingColumn(columnName = "LAST_FOLLOW_RESULT")
	private String lastFollowResult;
	@DocDesc("到店次数")
	@MappingColumn(columnName = "REACH_COUNT")
	private  Integer reachCount;
	@DocDesc("下一次跟进时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "NEXT_FOLLOW_DATETIME")
	private Date nextFollowDatetime;
	@DocDesc("末次跟进时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "LAST_FOLLOW_DATE")
	private Date lastFollowDate;
	@DocDesc("跟进人名称")
	@MappingColumn(columnName = "FOLLOWER_NAME")
	private String followerName;
	@DocDesc("备注")
	@MappingColumn(columnName = "CUSTOMER_REMARK")
	private String customerRemark;
	@DocDesc("预约时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "APPOINTMENT_TIME")
	private Date  appointmentTime;
	@DocDesc("失效战败时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "LOSE_EFFICACY_TIME")
	private Date  loseEfficacyTime;
	@DocDesc("是否到店")
	private Boolean  isReach;
	@DocDesc("客户")
	@MappingTable(tableName = "CUSTOMER")
	private Customer  customer;
	@DocDesc("列表条件")
	private String  customerShopMode;
	@DocDesc("排序字段")
	private String  orderColumn;
	@DocDesc("排序方式")
	private String  orderMode;


	public String getCustomerShopId() {
		return customerShopId;
	}

	public void setCustomerShopId(String customerShopId) {
		this.customerShopId = customerShopId;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getCustomerCard() {
		return customerCard;
	}

	public void setCustomerCard(String customerCard) {
		this.customerCard = customerCard;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getCustomerAddress() {
		return customerAddress;
	}

	public void setCustomerAddress(String customerAddress) {
		this.customerAddress = customerAddress;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getMarketId() {
		return marketId;
	}

	public void setMarketId(String marketId) {
		this.marketId = marketId;
	}

	public String getLevelId() {
		return levelId;
	}

	public void setLevelId(String levelId) {
		this.levelId = levelId;
	}

	public String getChannelId() {
		return channelId;
	}

	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	public Integer getFollowState() {
		return followState;
	}

	public void setFollowState(Integer followState) {
		this.followState = followState;
	}

	public String getFollowerId() {
		return followerId;
	}

	public void setFollowerId(String followerId) {
		this.followerId = followerId;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public String getLevelTxt() {
		return levelTxt;
	}

	public void setLevelTxt(String levelTxt) {
		this.levelTxt = levelTxt;
	}

	public BigDecimal getCustomerBudgetMin() {
		return customerBudgetMin;
	}

	public void setCustomerBudgetMin(BigDecimal customerBudgetMin) {
		this.customerBudgetMin = customerBudgetMin;
	}

	public BigDecimal getCustomerBudgetMax() {
		return customerBudgetMax;
	}

	public void setCustomerBudgetMax(BigDecimal customerBudgetMax) {
		this.customerBudgetMax = customerBudgetMax;
	}

	public String getLastFollower() {
		return lastFollower;
	}

	public void setLastFollower(String lastFollower) {
		this.lastFollower = lastFollower;
	}

	public String getLastFollowResult() {
		return lastFollowResult;
	}

	public void setLastFollowResult(String lastFollowResult) {
		this.lastFollowResult = lastFollowResult;
	}

	public Integer getReachCount() {
		return reachCount;
	}

	public void setReachCount(Integer reachCount) {
		this.reachCount = reachCount;
	}

	public Date getNextFollowDatetime() {
		return nextFollowDatetime;
	}

	public void setNextFollowDatetime(Date nextFollowDatetime) {
		this.nextFollowDatetime = nextFollowDatetime;
	}

	public Date getLastFollowDate() {
		return lastFollowDate;
	}

	public void setLastFollowDate(Date lastFollowDate) {
		this.lastFollowDate = lastFollowDate;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public String getFollowerName() {
		return followerName;
	}

	public void setFollowerName(String followerName) {
		this.followerName = followerName;
	}

	public String getCustomerRemark() {
		return customerRemark;
	}

	public void setCustomerRemark(String customerRemark) {
		this.customerRemark = customerRemark;
	}

	public Date getAppointmentTime() {
		return appointmentTime;
	}

	public void setAppointmentTime(Date appointmentTime) {
		this.appointmentTime = appointmentTime;
	}

	public Boolean getReach() {
		return isReach;
	}

	public void setReach(Boolean reach) {
		isReach = reach;
	}

	public Date getLoseEfficacyTime() {
		return loseEfficacyTime;
	}

	public void setLoseEfficacyTime(Date loseEfficacyTime) {
		this.loseEfficacyTime = loseEfficacyTime;
	}

	public String getOrderColumn() {
		return orderColumn;
	}

	public void setOrderColumn(String orderColumn) {
		this.orderColumn = orderColumn;
	}

	public String getOrderMode() {
		return orderMode;
	}

	public void setOrderMode(String orderMode) {
		this.orderMode = orderMode;
	}

	public String getCustomerShopMode() {
		return customerShopMode;
	}

	public void setCustomerShopMode(String customerShopMode) {
		this.customerShopMode = customerShopMode;
	}
}
